-- GENERATED SPELL FOR [Alliance Priest] --


function spell0_17928(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(31739,pUnit)
pUnit:RegisterEvent('Sorts_17928', 2500, 1)
end

function spell1_17928(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(31740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17928', 2500, 1)
end

function Sorts_17928(pUnit, Event)
local choix_sorts_17928 = math.random(0, 1)
if choix_sorts_17928 == 0 then
pUnit:RegisterEvent('spell0_17928', 1, 1)
end
if choix_sorts_17928 == 1 then
pUnit:RegisterEvent('spell1_17928', 1, 1)
end
end

function mob17928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17928', math.random(1500, 3000), 1)
end

function mob17928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17928, 1, 'mob17928_Action')
RegisterUnitEvent(17928, 2, 'mob17928_Leave')
RegisterUnitEvent(17928, 3, 'mob17928_Kill')
RegisterUnitEvent(17928, 4, 'mob17928_Die')
